package com.combining.d_factory.impl;

import com.combining.d_factory.Goose;
import com.combining.d_factory.face.Quackable;

public class GooseAdapter implements Quackable {
	Goose goose;

	public GooseAdapter(Goose goose) {
		this.goose = goose;
	}

	public void quack() {
		goose.honk();
	}

	public String toString() {
		return "鹅适配成鸭子";
	}
}
